<!doctype html>
<html>
    <head>
        <title>Bexf Extension - Options</title>
        <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
        <link rel="shortcut icon" href="icons/icon-18.png">
        <script type="text/javascript" src="Bexf.js"></script>
        <script type="text/javascript">
            function save() {
                $.opt('somedata', document.forms[0].msg.value);
                alert('Saved');
            }
        </script>
    </head>
    <body>
        Hello from options!
        <form>
            <input style="width: 100%" type="text" name="msg" id="msg" />
            <input type="button" onclick="save();" value="Save"/>
        </form>
    </body>
    <script type="text/javascript">
        document.forms[0].msg.value = $.opt('somedata');
    </script>
</html>